<?php
use think\facade\Route;
Route::group('zmt_login',function (){
    Route::post('register','zhengmao/Login/register');
    Route::post('login','zhengmao/Login/login');
    Route::post('yzm','zhengmao/Login/yzm');
});


Route::group('zmt_user',function (){
    Route::post('fileLocal','zhengmao/User/fileLocal');
    Route::post('update','zhengmao/User/update');
    Route::post('address','zhengmao/User/address');
    Route::post('addMoney','zhengmao/User/addMoney');
    Route::post('record','zhengmao/User/record');
    Route::get('index','zhengmao/User/index');
})->middleware(\api\zhengmao\middleware\CheckToken::class);


Route::group('order',function (){
    Route::post('index','zhengmao/Order/order');
    Route::post('pay','zhengmao/Pay/walletPay');
    Route::post('wuLiu','zhengmao/Order/wuLiu');
})->middleware(\api\zhengmao\middleware\CheckToken::class);


Route::group('home',function (){
    Route::post('banner','zhengmao/Home/banner');
    Route::post('nav','zhengmao/Home/nav');
});




